package com.bishe.demo.modules.hotel.hotel.dao;

import com.bishe.demo.modules.hotel.hotel.entity.HotelOrderHotelMain;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface HotelOrderHotelMainDao {
    @Insert("insert into hotel_order_hotel_main values(null,#{hotelOrderId},#{hotelMainId})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    void insertHotelOrderHotelMain(HotelOrderHotelMain hotelOrderHotelMain);
}
